package com.nstar.orderexpress.view
{
	import com.nstar.orderexpress.mxml.ToolTipPanel;
	import com.nstar.orderexpress.vo.OrderInfoVO;
	
	import flash.events.MouseEvent;
	
	import mx.containers.TitleWindow;
	import mx.controls.Button;
	import mx.events.CloseEvent;
	import mx.events.FlexEvent;
	import mx.managers.PopUpManager;

	public class ConfirmViewClass extends TitleWindow
	{
		//订单信息
		public var orderInfo:OrderInfoVO = new OrderInfoVO();
		
		public var btnOk:Button;
		public var btnCancel:Button;
		
		public function ConfirmViewClass()
		{
			//TODO: implement function
			super();
			this.addEventListener(FlexEvent.CREATION_COMPLETE,init);
			this.addEventListener(CloseEvent.CLOSE,closeHandler);
		}
		
		private function init(event:FlexEvent):void{
			btnOk.addEventListener(MouseEvent.CLICK,okHandler);
			btnCancel.addEventListener(MouseEvent.CLICK,closeHandler);
		}
		
		private function okHandler(event:MouseEvent):void{
			ToolTipPanel.show("this does not implements yet!");		
		}
		
		//关闭窗口
		private function closeHandler(event:*):void{
			PopUpManager.removePopUp(this);
		}
		
	}
}